package com.cncbox.dao;

import com.cncbox.entity.Article;

import java.util.List;

/**
 * @author Develop_Peng
 * @version V1.0
 * @Package com.cncbox.dao
 * @Description: 文章反问
 * @date 2016/3/31 11:36
 */

public interface ArticleDao {

    //添加文章
    Integer addArticle(Article article) throws Exception;

    //校验添加前的文章是否存在
    Integer selectArticleIsTrue(Article article) throws Exception;

    //修改文章
    Boolean updateArticle(Article article) throws Exception;

    //根据分类查询数据
    List<Article> selectClassData(Article article) throws Exception;

    //修改前查询数据
    Article queryArticle(Integer quId) throws Exception;

    //删除数据根据ID
    Boolean deleteArticle(Integer id) throws Exception;

    //带状态进行数据查询
    List<Article> selectStatusClassData(Article article) throws Exception;

    //查询文章列表顶部大图
    Article selectTopImageClassData(Article article) throws Exception;

}
